package com.kyg.tjtoolmanager.module;

import java.text.SimpleDateFormat;

public class Log {

    public String time;
    public String log;

    public Log() {

    }

    public Log(String msg) {
        SimpleDateFormat sdf = new SimpleDateFormat("MM-dd HH:mm:ss:SSS");// 24小时制
        java.util.Date d = new java.util.Date();
        time = sdf.format(d);
        this.log = msg;
    }

    public String getTime() {
        return time;
    }

    public String getLog() {
        return log;
    }

    @Override
    public String toString() {
        return time + "  " + log;
    }
}
